<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><tiles:insertAttribute name="title" /></title>
<!-- <script>
            dojoConfig = {
                async: true,
                gfxRenderer: "canvas"
            };
      </script> -->
<script src='/_ah/channel/jsapi'></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojox/grid/resources/claroGrid.css">
<script
	src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.1/dojo/dojo.js"
	data-dojo-config="isDebug: true, async: true">
		</script>
<link rel="stylesheet" href="<c:url value='/static/css/stakestyles.css' />" >
<script>
	var sessionToken; 
	<c:if test="${IS_CHAT_ENABLED_ATTR eq true}" >
		sessionToken =  '<c:out value="${USER_TOKEN_SESSION_ATTR }"></c:out>';
	</c:if>
</script>
<script src="/static/js/stakeHome.js" ></script>
<script src="/static/js/chatWindow.js" ></script>
</head>
<body class="claro">

	<div class="w-header-area" >
		<div id="" class="w-header-layer w-header-layer-text w-header-layer-align-left " style="
			left:5px; right:autopx; 
			top:18px; z-index: 20; display: block">
			<div class="w-header-layer-container">
				<h1 class="w-header-text-container">
					<div class="w-header-text w-header-title ">
						
							Speaker Nexus
						
					</div>
				</h1>
			</div>
		</div>
	</div>

	<div class="topmenu">
		<nav id="webs-nav-wrap">
			<ul id="webs-nav" class="webs-nav">
				<li class="webs-home active"><a href="javascript:void(0)" content-url="<c:url value='/public/welcomePane.htm?param1=${param1}' />" title="Home">
					<span class="title">Home</span><span class="after"></span></a>
				</li>
				<li class=""><a href="javascript:void(0)" title="Search"><span class="title">Search</span><span class="after"></span></a></li>
				<li class=""><a href="javascript:void(0)" title="About Us"><span class="title">About Us</span><span class="after"></span></a></li>
				<li class=""><a href="javascript:void(0)" title="FAQ"><span class="title">FAQ</span><span class="after"></span></a></li>
				<li class=""><a href="javascript:void(0)" title="Contact Us"><span class="title">Contact Us</span><span class="after"></span></a></li>
			</ul>
		</nav>
	</div>
		
	<%-- <div id="menubar" >
		<div  class="menu_item"	id="main_nav_1" subnav-class = "main_nav_id_1">
			<a href="javascript:void(0)">Home</a></div>
		<div class="menu_item" 	id="main_nav_2" subnav-class = "main_nav_id_2">
			<a href="javascript:void(0)">People</a></div>		
		<div class="menu_item" id="main_nav_3" subnav-class = "main_nav_id_3" >
			<span><a href="javascript:void(0)">Chat</a></span>
		</div>
		<sec:authorize ifAnyGranted="ROLE_ADMIN"> 
			<div  class="menu_item" id="main_nav_6" subnav-class = "main_nav_id_6">
				<a href="javascript:void(0)">Admin</a></div>
		</sec:authorize>
		
		<sec:authorize ifNotGranted="ROLE_ANONYMOUS">
			<c:set var="isLoggedIn" value="true"> </c:set>
		</sec:authorize>
		<div id="login_ui" style="margin-left: ${(isLoggedIn eq true) ? '100px' : '300px'}"> 
			<ul style="margin: 15px 10px;">
				<sec:authorize ifAnyGranted="ROLE_ANONYMOUS">
					<li><a id="login_url" content-url="<c:url value="/public/login.htm?source=app"/>"	href="javascript:void(0)">Login</a></li>
				</sec:authorize>
				<sec:authorize ifNotGranted="ROLE_ANONYMOUS">
					<li> <a id="activateChat" href="javascript:void(0)" content-url="<c:url value = "/chat/activateChat.htm" />" >Activate Chat</a> </li> 
					<li style="color: #CCC;">Welcome &nbsp; <c:out	value="${sessionScope.sessionUserName}" /></li>
					<li><a href="<c:url value="/j_spring_security_logout"/>">Logout</a>
					</li>
				</sec:authorize>
			</ul>
		</div>
	</div>
	
	<div id="submenublock">
		<div id="submenubar" >
			
			<div id="main_nav_id_1">
				<div class="submenu_item image_nav" content-url="<c:url value='/public/welcomePane.htm?param1=${param1}' />" >
					<a href="javascript:void(0)" >Welcome</a></div>				
			</div>
			<div id="main_nav_id_2" style="display:none">
				<div class="submenu_item image_nav" >
					<a href="javascript:void(0)">Search People</a></div>
				<div class="submenu_item image_nav" >
					<a href="javascript:void(0)">View Users</a></div>
				<div class="submenu_item image_nav" >
					<a href="javascript:void(0)">Support</a></div>							
			</div>
			<div id="main_nav_id_3" style="display:none">
				<div class="submenu_item image_nav" content-url="<c:url value='/chat/showUsers.htm' /> "> 
					<a href="javascript:void(0)"  >Current</a></div>
				<div class="submenu_item image_nav"> 
					<a href="javascript:void(0)">History</a></div>				
			</div>
			 <div id="main_nav_id_6" style="display:none">
				<div class="submenu_item image_nav"> 
					<a href="javascript:void(0)">All Users</a></div>
				<div  class="submenu_item image_nav" content-url="<c:url value='/admin/updateQuestions.htm' /> ">
					<a href="javascript:void(0)"> Questions</a></div>
			 </div>
		</div>
		
		<div id="header_image_block">
			
		</div>
	</div> --%>
	<div id="contentpane" >
	
	</div>
	<!-- <div id="crn_footer">

		<ul style="width: 60%;">
			<li><a href="#">Contact</a>
			</li>
			<li><a href="#">Privacy</a>
			</li>
			<li><a href="#">Terms of Use</a>
			</li>
			<li><a href="#">Accessibility</a>
			</li>
			<li><a href="#">Feedback</a>
			</li>
		</ul>

	</div> -->
	<p style="visibility: hidden;" id="lastRequest"></p> 
	

	
</body>
</html>